package com.zc.iotDevice.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充电设备统计信息对象 charge_statistics_info
 *
 * @author gaojikun
 * @date 2024-05-21
 */
public class ChargeStatisticsInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long id;

    /**
     * 桩编码
     */
    @Excel(name = "桩编码")
    private String deviceId;

    private String deviceName;

    /**
     * 枪编码
     */
    @Excel(name = "枪编码")
    private String portId;

    private String portName;

    /**
     * 累计充电量
     */
    @Excel(name = "累计充电量")
    private BigDecimal chargeKwhSum;

    /**
     * 累计充电次数
     */
    @Excel(name = "累计充电次数")
    private Long chargeNum;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setPortId(String portId) {
        this.portId = portId;
    }

    public String getPortId() {
        return portId;
    }

    public void setChargeKwhSum(BigDecimal chargeKwhSum) {
        this.chargeKwhSum = chargeKwhSum;
    }

    public BigDecimal getChargeKwhSum() {
        return chargeKwhSum;
    }

    public void setChargeNum(Long chargeNum) {
        this.chargeNum = chargeNum;
    }

    public Long getChargeNum() {
        return chargeNum;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getPortName() {
        return portName;
    }

    public void setPortName(String portName) {
        this.portName = portName;
    }

    public ChargeStatisticsInfo() {

    }

    public ChargeStatisticsInfo(String deviceId, String portId, BigDecimal chargeKwhSum, Long chargeNum) {
        this.deviceId = deviceId;
        this.portId = portId;
        this.chargeKwhSum = chargeKwhSum;
        this.chargeNum = chargeNum;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceId", getDeviceId())
                .append("portId", getPortId())
                .append("chargeKwhSum", getChargeKwhSum())
                .append("chargeNum", getChargeNum())
                .append("createTime", getCreateTime())
                .toString();
    }
}
